import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*
  技术复核内容
*/

/**
 * 复核项目分页 查询
 * @param data
 */
 export function reviewContentPage(data){
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckProject/getPageTeachnicalCheckProject`,
      method: 'post',
      data
    })
  } 
/**
 * 复核项目 新增
 * @param data
 */
 export function reviewContentAdd(data){
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckProject/insertSelective`,
      method: 'post',
      data
    })
  } 
/**
 * 复核项目 编辑
 * @param data
 */
 export function reviewContentUpdate(data){
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckProject/updateByPrimaryKeySelective`,
      method: 'post',
      data
    })
  } 
  
/**
 * 获取技术复核内容信息 新增
 * @param data
 */
 export function reviewContentContentAdd(data){
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckContent/insertSelective`,
      method: 'post',
      data
    })
  } 
  
/**
 * 获取技术复核内容信息 编辑
 * @param data
 */
 export function reviewContentContentUpdate(data){
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckContent/updateByPrimaryKeySelective`,
      method: 'post',
      data
    })
  } 
/**
 * 获取技术复核项目信息
 * @param data
 */
 export function getReviewCheckProjectAll(data){ 
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckProject/queryTeachnicalCheckProjectList`,
      method: 'post',
      data
    })
  } 
/**
 * 获取技术复核内容信息
 * @param data
 */
 export function getReviewContentAll(data){ 
    return request({ 
      url: `${faceApiUrl}/teachnicalCheckContent/queryTeachnicalCheckContentList`,
      method: 'post',
      data
    })
  } 
/**
 * 填写未复核原因
 * @param data
 */
 export function addNoCheckReason(data){ 
    return request({ 
      url: `${faceApiUrl}/technicalMonthPlan/addNoCheckReason`,
      method: 'post',
      data
    })
  } 
/**
 * 获取技术复核内容信息
 * @param data
 */
 export function getTeachnicalCheckContentById(data){
  return request({
    url: `${faceApiUrl}/teachnicalCheckContent/getTeachnicalCheckContentById?id=${data.id}`,
    method: 'get',
    data
  })
} 
